package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkAirportservicePriceMapper;
import com.ktgj.service.domain.ContractLinkAirportservicePrice;
import com.ktgj.service.service.IContractLinkAirportservicePriceService;

/**
 * 合同机场服务价格			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkAirportservicePriceServiceImpl implements IContractLinkAirportservicePriceService 
{
    @Autowired
    private ContractLinkAirportservicePriceMapper contractLinkAirportservicePriceMapper;

    /**
     * 查询合同机场服务价格			

     * 
     * @param contractAirportServicePriceId 合同机场服务价格			
ID
     * @return 合同机场服务价格			

     */
    @Override
    public ContractLinkAirportservicePrice selectContractLinkAirportservicePriceById(Long contractAirportServicePriceId)
    {
        return contractLinkAirportservicePriceMapper.selectContractLinkAirportservicePriceById(contractAirportServicePriceId);
    }

    /**
     * 查询合同机场服务价格			
列表
     * 
     * @param contractLinkAirportservicePrice 合同机场服务价格			

     * @return 合同机场服务价格			

     */
    @Override
    public List<ContractLinkAirportservicePrice> selectContractLinkAirportservicePriceList(ContractLinkAirportservicePrice contractLinkAirportservicePrice)
    {
        return contractLinkAirportservicePriceMapper.selectContractLinkAirportservicePriceList(contractLinkAirportservicePrice);
    }

    /**
     * 新增合同机场服务价格			

     * 
     * @param contractLinkAirportservicePrice 合同机场服务价格			

     * @return 结果
     */
    @Override
    public int insertContractLinkAirportservicePrice(ContractLinkAirportservicePrice contractLinkAirportservicePrice)
    {
        contractLinkAirportservicePrice.setCreateTime(DateUtils.getNowDate());
        return contractLinkAirportservicePriceMapper.insertContractLinkAirportservicePrice(contractLinkAirportservicePrice);
    }

    /**
     * 修改合同机场服务价格			

     * 
     * @param contractLinkAirportservicePrice 合同机场服务价格			

     * @return 结果
     */
    @Override
    public int updateContractLinkAirportservicePrice(ContractLinkAirportservicePrice contractLinkAirportservicePrice)
    {
        contractLinkAirportservicePrice.setUpdateTime(DateUtils.getNowDate());
        return contractLinkAirportservicePriceMapper.updateContractLinkAirportservicePrice(contractLinkAirportservicePrice);
    }

    /**
     * 批量删除合同机场服务价格			

     * 
     * @param contractAirportServicePriceIds 需要删除的合同机场服务价格			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkAirportservicePriceByIds(Long[] contractAirportServicePriceIds)
    {
        return contractLinkAirportservicePriceMapper.deleteContractLinkAirportservicePriceByIds(contractAirportServicePriceIds);
    }

    /**
     * 删除合同机场服务价格			
信息
     * 
     * @param contractAirportServicePriceId 合同机场服务价格			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkAirportservicePriceById(Long contractAirportServicePriceId)
    {
        return contractLinkAirportservicePriceMapper.deleteContractLinkAirportservicePriceById(contractAirportServicePriceId);
    }
}
